import xmlrpclib
import time
import os

s = xmlrpclib.Server("http://localhost:8000/bitfluxengine")
print s.status()
print s.getjobs()

XML_RPC_USER = "test"
XML_RPC_PASS = "test"

aria2c_xmlrpc_server = xmlrpclib.Server('http://' + XML_RPC_USER + ':' + XML_RPC_PASS + '@localhost:6800/rpc')
'''
stats = aria2c_xmlrpc_server.aria2.tellStatus(
        "6",
        ['gid','downloadSpeed','completedLength','status','connections']
        )
        
print stats
'''
